package com.zyz.D_方法;

/**
 * @author: vick
 * @Date: 2025/3/13
 * @Description:
 * @version: 1.0
 */
public class Demo1 {
    public static void main(String[] args) {
        Demo1 demo1 = new Demo1();
        int result = demo1.add(1 ,2);
        System.out.println(result);
        demo1.sout();
    }

    public int add (int a, int b) {
        return a + b;
    }

    public void sout() {
        System.out.println("没有返回值");
    }
}
